﻿using System;
using System.Collections.Generic;
using System.Text;
using DotNet.Model;
using DotNet.Common;
using DotNet.Data.Factory;
using System.Collections;
using System.Data;
using System.Data.SqlClient;
using DotNet.Data;
namespace DotNet.Business
{
   public class sendMailBll
    {
        sendMailDal smDal = new sendMailDal();
        #region 是否存在该记录
        /// <summary>
        /// 是否存在该记录
        /// </summary>
        public bool Exists(int SendID)
        {
            return smDal.Exists(SendID);
        }
        #endregion

        #region 获得邮件信息数据列表
        /// <summary>
        /// 获得邮件信息数据列表
        /// </summary>
        /// <returns></returns>
        public IList<sendMail> GetModel()
        {
            return smDal.GetModel();
        }
        #endregion

        #region 根据邮件信息号查询实体
        /// <summary>
        /// 根据邮件信息号查询实体
        /// </summary>
        /// <param name="SendID"></param>
        /// <returns></returns>
        public sendMail GetModel(int SendID)
        {
            return smDal.GetModel(SendID);

        }
        #endregion

        #region 修改邮件信息
        /// <summary>
        /// 修改邮件信息
        /// </summary>
        /// <param name="sendMail"></param>
        /// <returns></returns>
        public bool Update(sendMail sendMail)
        {
            return smDal.Update(sendMail);
        }
        #endregion

        #region 删除邮件信息根据邮件信息号
        /// <summary>
        /// 删除邮件信息根据邮件信息号
        /// </summary>
        /// <param name="SendID"></param>
        /// <returns></returns>
        public bool Delete(int SendID)
        {
            return smDal.Delete(SendID);
        }
        #endregion

        #region 添加邮件信息
        /// <summary>
        /// 添加邮件信息
        /// </summary>
        /// <param name="sendMail"></param>
        /// <returns></returns>
        public bool Insert(sendMail sendMail)
        {
            return smDal.Insert(sendMail);
        }
        #endregion
    }
}
